using System;
using System.Collections.Generic;
using System.Text;

namespace FacadePattern
{
    class Fund
    {
        GoldStock goldS;
        OilStock oilS;
        NationalDebt nationalDebtS;
        Realty realtyS;
        public Fund()
        {
            goldS = new GoldStock();
            oilS = new OilStock();
            nationalDebtS = new NationalDebt();
            realtyS = new Realty();
        }

        public string BuyFund()
        {
            StringBuilder reSB = new StringBuilder();
            reSB.Append(goldS.Buy() + "\n");
            reSB.Append(oilS.Buy() + "\n");
            reSB.Append(nationalDebtS.Buy() + "\n");
            reSB.Append(realtyS.Buy() + "\n");

            return reSB.ToString();
        }

        public string CellFund()
        {
            StringBuilder reSB = new StringBuilder();
            reSB.Append(goldS.Cell() + "\n");
            reSB.Append(oilS.Cell() + "\n");
            reSB.Append(nationalDebtS.Cell() + "\n");
            reSB.Append(realtyS.Cell() + "\n");

            return reSB.ToString();
        }
    }
}
